<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">	
			<a class="mui-icon mui-icon-back mui-action-back mui-pull-left"></a>
			<a class="mui-icon mui-icon-search" style="position: relative; float: right;"></a>
			<div style="float:right; width:100%; margin:1px -60px 0 0;">
				<div class="mui-input-row" style="padding-right: 66px;">
					<input type="search" id="txt_search" placeholder="搜索" style="background:#fff; color:#000; padding-left:5px; text-align: left;">
				</div>
			</div>
		</header>
		<script src="../js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init();
			
			mui.plusReady(function(){
				var self = plus.webview.currentWebview();
				var txt_search =document.getElementById("txt_search");
				txt_search.value = self.condition;
				
				var txt_search = document.getElementById("txt_search");
				txt_search.addEventListener("keypress",function(event){
					if(event.keyCode == "13") {
				        document.activeElement.blur();//收起虚拟键盘
				        //openSearch();//TODO 完成搜索事件
				        event.preventDefault(); // 阻止默认事件---阻止页面刷新
				    }
				});
			})
		</script>
	</body>

</html>